﻿<%@  language="vbscript" codepage="65001" %>
<!--#include file="Inc/cf.asp" -->
<!--#include file="Inc/conn.asp" -->
<!--#include file="Inc/object.asp" -->
<!--#include file="Inc/function.asp" -->
<!--#include file="Inc/MailObject.asp" -->
<!--#include file="Inc/getuser.asp" -->
<%action=getform("action","")%>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>
        <%=conSiteTitle %>
    </title>
    <!--#include file="headmeta.asp"-->
</head>
<body>
    <%
    if action<>"" then
        set Mail=new MailObject        
        Mail.MailServer=conMailServer
        Mail.MailServerUserName=conMailServerUserName
        Mail.MailServerPassWord=conMailServerPassWord
        Mail.MailDomain=conMailDomain
    end if
    ' Contactus
    if action="contactus" then        
        formmail=getform("email","")
        subject=getform("subject","General Enquiries")
        body= "Name:" & getform("username","") & "<br />"
        body= body & "Company:" & getform("company","") & "<br />"
        body= body & "Email:" & formmail & "<br />"
        body= body & "How did you find us?:<br />" & getform("reason","") & "<br /><br />"
        body= body & encode(getform("content",""))
        mail.send conWebmasterEmail,conWebmasterEmail, subject, body, formmail, formmail, 3
        set mail=nothing
        call alert("Tip:\r\n\r\nMail send success！","index.asp")
    end if    
    
    ' tellfriend
    if action="tellfriend" then        
        sendmail=getform("mail","")
        subject="Tell a Friend about this Product"
        body= "Hi! You're going to love this. Check out <a href=" & conSiteUrl & ">LuxUnion.com</a> for " & getform("productname","") & ". This is the latest in the line of High Quality Replicas they are known for.You can buy one for you from <a href=" & conSiteUrl & ">LuxUnion.com</a>. You are gonna thank me for this sweet little secret!<br />"                        
        mail.send sendmail,sendmail, subject, body, conSiteName, conWebmasterEmail, 3
        set Mail=nothing
        call alertback("Tip:\r\n\r\nSend success！")
    end if
    
    call HistoryBack()
    %>
</body>
</html>
<%call closeconn %>
